#include "Graphics/Material.h"

#include "Framework/StableHeaders.h"

namespace tyro
{
	namespace Graphics
	{

		Material::Material( IO::ResourceManager* resMgr, const String& name, ResourceHandle resHandle, const String& group )
			:	Resource(resMgr, name, resHandle, group)
		{
			CreateDictionary("Material");
		}

		Technique* Material::GetTechnique( UINT_16 index )
		{
			return techniques[index];
		}

		Technique* Material::CreateTechnique( void )
		{
			Technique* t = new Technique(this);
			techniques.push_back(t);
			return t;
		}

	}
}